package com.qfjy.homework.ztx;

/**
 * @Author: 25348
 * @Date: 2023/6/29 20:00
 * @Project: java-2301-opensource-linux
 */
public class ProxyPatternDemo {

    public static void main(String[] args) {
        Image image = new ProxyImage("test_10mb.jpg");

        // 图像将从磁盘加载
        image.display();
        System.out.println("");
        // 图像不需要从磁盘加载
        image.display();
    }
}
